package define

import (
	"github.com/dgrijalva/jwt-go"
	"time"
)

var (
	// JwtKey 密钥
	JwtKey = "backendSystem"
	// TokenExpire 有效期 为1天
	TokenExpire = time.Now().Add(time.Second * 3600 * 24 * 1).Unix()
	// RefreshTokenExpire 刷新token为14天
	RefreshTokenExpire = time.Now().Add(time.Second * 3600 * 24 * 2).Unix()
	// DefaultSize 默认每页显示条数
	DefaultSize = 10
)

type UserClaims struct {
	Id      int64
	RoleId  int64
	IsAdmin bool
	MenuIds []int64
	jwt.StandardClaims
}
